package com.ht.sps.web.view;

import org.nutz.mvc.View;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileOutputStream;
import java.nio.charset.Charset;
import java.util.zip.ZipOutputStream;

/**
 * Created by bcw on 14-3-12.
 */
public class ZipView implements View {
    @Override
    public void render(HttpServletRequest req, HttpServletResponse resp, Object obj) throws Throwable {

        ZipOutputStream zos = new ZipOutputStream(resp.getOutputStream(), Charset.forName("GBK"));
    }
}
